package xmlele
Import Path
github.com/ChrisTrenkamp/goxpath/tree/xmltree/xmlele (on go.dev)
Dependency Relation
imports 4 packages, and imported by one package
Involved Source Files
xmlele.go
Package-Level Type Names (only one)
XMLEle is an implementation of XPRes for XML elements
Attrs []tree.Node
Children []tree.Node
NSBuilder tree.NSBuilder
NodePos tree.NodePos
NodeType tree.NodeType
NSBuilder.NS map[xml.Name]string
Parent tree.Elem
StartElement xml.StartElement
StartElement.Attr []xml.Attr
StartElement.Name xml.Name
Copy creates a new copy of StartElement.
CreateNode is an implementation of xmlbuilder.XMLBuilder. It appends the node
specified in opts and returns the child if it is an element. Otherwise, it returns x.
End returns the corresponding XML end element.
EndElem is an implementation of xmlbuilder.XMLBuilder. It returns x's parent.
GetAttrs returns all attributes of the element
GetChildren returns all child nodes of the element
GetNS returns the namespaces found on the current element. It should not be
confused with BuildNS, which actually resolves the namespace nodes.
GetNodeType returns the node's type.
GetParent returns the parent node, or itself if it's the root
GetToken returns the xml.Token representation of the node
Pos returns the node's document order position
ResValue returns the string value of the element and children
*XMLEle : github.com/ChrisTrenkamp/goxpath/tree/xmltree/xmlbuilder.XMLBuilder
*XMLEle : github.com/ChrisTrenkamp/goxpath/tree.Elem
*XMLEle : github.com/ChrisTrenkamp/goxpath/tree.Node
*XMLEle : github.com/ChrisTrenkamp/goxpath/tree.NSElem
Package-Level Functions (only one)
Root is the default root node builder for xmltree.ParseXML
![]() |
The pages are generated with Golds v0.6.7. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |